package ar.edu.caece.compiler.grammar.attributes.tree;

public class NodeAsignacion extends NodeSentencia {
	private String varId;
	private NodeExpr expresion;
	private NodeExpr posArray;
	
	public NodeAsignacion(String varId, NodeExpr expresion) {
		super();
		this.varId = varId;
		this.expresion = expresion;
	}
	
	public String getVarId() {
		return varId;
	}
	public void setVarId(String varId) {
		this.varId = varId;
	}

	public NodeExpr getExpresion() {
		return expresion;
	}
	public void setExpresion(NodeExpr expresion) {
		this.expresion = expresion;
	}

	public void setPosArray(NodeExpr posArray) {
		this.posArray = posArray;
	}

	public NodeExpr getPosArray() {
		return posArray;
	}
	
	public String toString() {
		return "[Nodo Asignacion -> Variable: " + varId + " expresion " + expresion + "posarray: " + posArray +"]"; 
	}
}
